/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2014 All Rights Reserved.
 */
package com.h2o3.carmack.config;

import org.springframework.beans.factory.xml.NamespaceHandlerSupport;

/**
 * @author chensheng
 * @version $Id: CarmackNamespaceHandler.java, v 0.1 2/10/14 3:35 AM chensheng Exp $
 */
public class CarmackNamespaceHandler extends NamespaceHandlerSupport {

    private static final String SERVER                            = "server";
    private static final String ANNOTATION_DRIVEN_MESSAGE_HANDLER = "annotation-driven-message-handler";

    @Override
    public void init() {
        registerBeanDefinitionParser(SERVER, new ServerBeanDefinitionParser());
        registerBeanDefinitionParser(ANNOTATION_DRIVEN_MESSAGE_HANDLER,
            new AnnotationDrivenMessageHandlerDefinitionParser());
    }
}
